<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div id="app" class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-body">
						<form class="form-horizontal m-t" id="${entityLowerName}Form">
                    <#list editFields as field>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">${field.comment}：</label>
                                <div class="col-sm-6 control-label">
                        <#if field.propertyType == "Date">
                            <label th:text="${"$"}{${entityLowerName}.${field.propertyName}}"></label>

                        <#elseif field.propertyType=="BigDecimal" || field.propertyType == "Integer" || field.propertyType == "Long">
                             <label th:text="${"$"}{${entityLowerName}.${field.propertyName}}"></label>

                        <#else>
                             <label th:text="${"$"}{${entityLowerName}.${field.propertyName}}"></label>
                        </#if>
                                </div>
                            </div>
                    </#list>

							<div class="form-group">
								<div class="col-sm-8 col-sm-offset-2">
                                    <a th:href="@{/${cfg.module}/${entityLowerName}/gotoSearch}" class="btn btn-success">
                                        <i class="fa fa-arrow-left" aria-hidden="true"></i>&nbsp;返回
                                    </a>
								</div>

							</div>
						</form>
					</div>
				</div>
			</div>
	    </div>
	</div>
	<div th:include="include::footer"></div>

</body>
</html>
